package io.perfeccionista.framework.pagefactory.filter.textlist.condition.resolver;

import io.perfeccionista.framework.Environment;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

public abstract class AbstractWebTextListBlockConditionCucumberResolver implements WebTextListBlockConditionCucumberResolver {

    protected Environment environment;
    protected List<Pattern> patterns = new ArrayList<>();
    protected int priority = 0;

//    @Override
//    public void init(@NotNull Environment environment, @NotNull List<String> patterns) {
//        this.environment = environment;
//        Set<Pattern> compiledPatterns = patterns.stream()
//                .map(this::convertToRegexp)
//                .collect(Collectors.toSet());
//        this.patterns.addAll(compiledPatterns);
//    }
//
//    @Override
//    public void setPriority(int priority) {
//        this.priority = priority;
//    }
//
//    @Override
//    public int getPriority() {
//        return priority;
//    }

}
